﻿using DotNetty.Transport.Channels;
using InkjetControl.codec;
using InkjetControl.NLog;
using System;
using System.Collections.Generic;
using System.Text;

namespace InkjetControl.services.resolvers
{
    public class PongMessageResolver : IResolver
    {
        public Message Resolve(Message message)
        {
            Log.Logger.Debug("Srv Pong Resolve: [ sessionID:{0}], recv body:{1}", message.SessionId);
            return new Message() { MessageType = MessageType.EMPTY };
        }

        public bool Support(Message message)
        {
            return MessageType.PONG == message.MessageType;
        }
    }
}
